package hcn.protocol.brandnew.dengji.bingli;

import lombok.Data;
import javax.xml.bind.annotation.*;
import java.util.List;
import hcn.protocol.brandnew.BaseRequest;


/**
 * 门诊病历信息新增-响应消息（失败） - ODS_02100001_SUC
 *
 * @author enjoyLife
 */
@Data
@XmlRootElement(name = "Data")
@XmlAccessorType(XmlAccessType.FIELD)
public class SyncTemplateResponse {

    /**
     * 病历类别模板List
     */
    @XmlElementWrapper(name = "RequestLists")
    @XmlElement(name = "RequestList")
    private List<RequestList> requestLists;

    @Data
    @XmlAccessorType(XmlAccessType.FIELD)
    public static class TemplateClassList {

        /**
         * 模板类别名称
         */
        @XmlElement(name = "TemplateClassName")
        private String templateClassName;
        /**
         * 模板类别编号
         */
        @XmlElement(name = "TemplateClassId")
        private String templateClassId;
    }

    @Data
    @XmlAccessorType(XmlAccessType.FIELD)
    public static class RequestList {

        /**
         * 医疗机构组织机构代码
         */
        @XmlElement(name = "VisitOrganization")
        private String visitOrganization;
        /**
         * 机构名称
         */
        @XmlElement(name = "VisitOrganizationName")
        private String visitOrganizationName;
        /**
         * 病历类别编号
         */
        @XmlElement(name = "MedicalClassId")
        private String medicalClassId;
        /**
         * 病历类别名称
         */
        @XmlElement(name = "MedicalClassName")
        private String medicalClassName;
        /**
         * 模板类别集合
         */
        @XmlElementWrapper(name = "TemplateClassLists")
        @XmlElement(name = "TemplateClassList")
        private List<TemplateClassList> templateClassLists;
    }

}
